<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>啾啾宝</title>
    <link rel="icon"  href="caketouming.png" sizes="64x64">
    <style>
        body {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 100vh;
            background-image: linear-gradient(to top,#455cdd 0%,#abdaf0 100%);
            overflow: hidden;
        }
        .shell {
            /* position:relative; */
            width:60vw;
            height: 40vw;
            max-width: 380px;
            max-height: 250px;
            margin: 0;
            color:white;
            perspective: 1000px;
            transform-origin:center ;
        }
        .content {
            display: flex;
            justify-content: center;
            align-items: center;
            position: absolute;
            width:100%;
            height: 100%;
            transform-origin: center;
            transform-style: preserve-3d;
            transform: translateZ(-30vw) rotateY(0);
            animation: carousel 16s infinite cubic-bezier(0.77,0,0.175,1) forwards;
        }
        .item {
            position: absolute;
            width:60vw;
            height: 40vw;
            max-width: 380px;
            max-height: 250px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.3);
            border-radius: 6px;
            background-size: cover;
            -webkit-box-reflect: below 25px -webkit-linear-gradient(transparent 50%,rgba(255,255,255,0.3));
        }
        .item:nth-child(1) {
            background-image: url(./1.jpg);

            transform: rotateY(0deg) translateZ(35vw);
        }
         .item:nth-child(2) {
            background-image: url(./2.jpg);
            /* background-position: 0px 300px;  */
            transform: rotateY(51.4285714286deg) translateZ(35vw);
        }
        .item:nth-child(3) {
            background-image: url(./3.jpg);
            /* background-position:0px 300px ; */
            transform: rotateY(102.8571428571deg) translateZ(35vw);
        } 
        .item:nth-child(4) {
            background-image: url(./4.jpg);
            /* background-position:0px 300px ; */
            transform: rotateY(154.2857142857deg) translateZ(35vw);
        } 
        .item:nth-child(5) {
            background-image: url(./5.jpg);
            /* background-position:0px 300px ; */
            transform: rotateY(205.7142857143deg) translateZ(35vw);
        } 
        .item:nth-child(6) {
            background-image: url(./6.jpg);
            /* background-position:0px 300px ; */
            transform: rotateY(257.1428571429deg) translateZ(35vw);
        } 
        .item:nth-child(7) {
            background-image: url(./7.jpg);
            /* background-position:0px 300px ; */
            transform: rotateY(308.5714285714deg) translateZ(35vw);
        } 
        @keyframes carousel {
            0%,
            12.5% {
                transform: translateZ(-35vw) rotateY(0);
            }
            18.75%,
            31.25% {
                transform: translateZ(-35vw) rotateY(-51.4285714286deg);
            }
            31.25%,
            43.75% {
                transform: translateZ(-35vw) rotateY(-102.8571428571deg);
            }
            43.75%,
            56.25% {
                transform: translateZ(-35vw) rotateY(-154.2857142857deg);
            }
            56.25%,
            68.75% {
                transform: translateZ(-35vw) rotateY(-205.7142857143deg);
            }
            68.75%,
            81.25% {
                transform: translateZ(-35vw) rotateY(-257.1428571429deg);
            }
            81.25%,
            93.75% {
                transform: translateZ(-35vw) rotateY(-308.5714285714deg);
            }
            93.75%,
            100% {
                transform: translateZ(-35vw) rotateY(-360deg);
            }
        }
    </style>
       
</head>
<body>
    <div class="shell">
        <div class="content">
            <div class="item"></div>
            <div class="item"></div>
            <div class="item"></div>
            <div class="item"></div>
            <div class="item"></div>
            <div class="item"></div>
            <div class="item"></div>
        </div>
    </div>
</body>
</html>